﻿<%@ Control Language="C#" ClassName="CommentFields" %>

<asp:FormView ID="FormView1" runat="server">
	<ItemTemplate>
		<table border="0" cellpadding="3" cellspacing="1">
			<tr>
        <td class="literal"><asp:Label ID="lbldataProductId" runat="server" Text="Product Id:" AssociatedControlID="dataProductId" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataProductId" Text='<%# Bind("ProductId") %>'></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataProductId" runat="server" Display="Dynamic" ControlToValidate="dataProductId" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeVal_dataProductId" runat="server" Display="Dynamic" ControlToValidate="dataProductId" ErrorMessage="Invalid value" MaximumValue="2147483647" MinimumValue="-2147483648" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataCommentName" runat="server" Text="Comment Name:" AssociatedControlID="dataCommentName" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataCommentName" Text='<%# Bind("CommentName") %>' MaxLength="50"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataCommentName" runat="server" Display="Dynamic" ControlToValidate="dataCommentName" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataCommentEmail" runat="server" Text="Comment Email:" AssociatedControlID="dataCommentEmail" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataCommentEmail" Text='<%# Bind("CommentEmail") %>' MaxLength="50"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataCommentEmail" runat="server" Display="Dynamic" ControlToValidate="dataCommentEmail" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataCommentDetail" runat="server" Text="Comment Detail:" AssociatedControlID="dataCommentDetail" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataCommentDetail" Text='<%# Bind("CommentDetail") %>' MaxLength="200"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataCommentDetail" runat="server" Display="Dynamic" ControlToValidate="dataCommentDetail" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataCommentTitle" runat="server" Text="Comment Title:" AssociatedControlID="dataCommentTitle" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataCommentTitle" Text='<%# Bind("CommentTitle") %>' MaxLength="100"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataCommentTitle" runat="server" Display="Dynamic" ControlToValidate="dataCommentTitle" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataCommentDate" runat="server" Text="Comment Date:" AssociatedControlID="dataCommentDate" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataCommentDate" Text='<%# Bind("CommentDate", "{0:d}") %>' MaxLength="10"></asp:TextBox><asp:ImageButton ID="cal_dataCommentDate" runat="server" SkinID="CalendarImageButton" OnClientClick="javascript:showCalendarControl(this.previousSibling);return false;" /><asp:RequiredFieldValidator ID="ReqVal_dataCommentDate" runat="server" Display="Dynamic" ControlToValidate="dataCommentDate" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			
		</table>

	</ItemTemplate>
</asp:FormView>


